const exec = require('child_process').exec;
function execute(cmd) {
  exec(cmd, function (error) {
    if (error) {
      console.error(error);
    } else {
      console.log('push 成功');
    }
  });
}
let messge = process.argv[2];
if (messge) {
  execute(`git add . && git commit -m ${messge} && git push`);
} else {
  console.log('请输入提交内容');
}
